//
//  NSString+Util.h
//  sunxun
//
//  Created by xiaohai on 15/8/1.
//  Copyright (c) 2015年 xiaohai. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Util)
+ (BOOL)valiMobile:(NSString *)mobile;
+(BOOL) isBlankString:(NSString *)string;
+(BOOL) isValidateMobile:(NSString *)mobile;
+(BOOL) isValidatePassword:(NSString *)password;
+(BOOL) isValidateTelCode:(NSString *)telCode;
+(BOOL) isValidateIdentityCard: (NSString *)identityCard;
+(BOOL) isValidateBankCard: (NSString *)bankCard;
+(BOOL) isNULLString:(NSString *)string;
//计算字符串的字节数(汉字占两个)
- (int)getByteNum;

//从字符串中截取指定字节数
- (NSString *)subStringByByteWithIndex:(NSInteger)index;


@end
